package com.cv.platform.controller.system.video;

import com.cv.framework.common.pojo.PageResult;
import com.cv.framework.common.pojo.Result;
import com.cv.platform.controller.platform.video.vo.CvVideoItemRespVO;
import com.cv.platform.controller.platform.video.vo.menu.CvVideoMenuReqVO;
import com.cv.platform.service.video.CvVideoService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

import static com.cv.framework.common.pojo.Result.success;

/**
 * 后台管理系统 - 视频控制层
 * 
 * @author Charles_XDXD
 */
@Tag(name = "后台管理系统 - 视频控制层")
@RestController
@RequestMapping("/platform/video")
public class SystemVideoController {
    
    @Resource
    private CvVideoService cvVideoService;

    @GetMapping("page")
    @Operation(summary = "获取视频筛选条件（视频平台 - 筛选页）")
    public Result<PageResult<CvVideoItemRespVO>> getVideoMenu(CvVideoMenuReqVO reqVO) {
        return success(cvVideoService.getVideoPage(reqVO));
    }
    
}
